<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Errors - pyspider</title>
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <meta name="description" content="last actived tasks">
    <meta name="author" content="binux">
    <link href="{{ url_for('cdn', path='twitter-bootstrap/3.1.1/css/bootstrap.min.css') }}" rel="stylesheet">
    <link href="{{ url_for('static', filename='tasks.css') }}" rel="stylesheet">
    <link href="{{ url_for('static', filename='error.css') }}" rel="stylesheet">

    <script src="{{ url_for('cdn', path='jquery/1.11.0/jquery.min.js') }}"></script>
    <script src="{{ url_for('cdn', path='twitter-bootstrap/3.1.1/js/bootstrap.min.js') }}"></script>
  </head>

  <body>
  <div class="outbox">
    <div class="box" >
      <div style="text-align:left;">
        {% if error_type == 3 %}
        <h2>无数据的project查看</h2>
        {% else %}
        <h2>UNKNOWN</h2>
        {% endif %}
        <div class="my_filter">
          <span class="my_filterHeader" >Group：</span>
          <div id="group" class="btn-group" role="group"></div>
        </div>
        <div class="my_filter">
          <span class="my_filterHeader" >Project：</span>
          <div id="project" class="btn-group" role="group"></div>
        </div>
      </div>
      <div id="result">
      </div>
    </div>
    {% for project, dates in task_group.items() %}
    <div id="task-{{ project }}" style="display: none;">
      <ul class=tasks>
        {% for date in dates %}
        <li class=task>
          <span><button id="../error/ignore_date/{{ project }}:{{ date }}" type="button" onclick="deal(this)" class="btn btn-primary btn-me">忽略</button></span>
            <th>{{date}}</th>
            <th>{{date}}</th>

          <span span=follows>
          </span>
        </li>
        {% endfor %}
      </ul>
    </div>
    {% endfor %}
  </div>
  <script src="{{ url_for('static', filename='error.js') }}"></script>
  <script>
      gmp = {{ gmp | safe }};
      ShowG();
  </script>
  </body>
</html>
